package com.applet.system.service.impl;

import com.applet.code.util.Page;
import com.applet.system.entity.ProjectCategory;
import com.applet.system.mapper.IstpManagerMapper;
import com.applet.system.service.IstpManagerService;
import com.applet.system.entity.GeneVo;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class IstpManagerServiceImpl implements IstpManagerService {
@Resource
IstpManagerMapper istpManagerMapper;


	/**
	 * 获取所有平台用户
	 * @param geneVo
	 * @return
	 */
	@Override
	public List<Map> getAllUser(Page page, GeneVo geneVo){
	return istpManagerMapper.getAllUser(geneVo);
	}

	@Override
	public int addCategory(ProjectCategory category) {
		return istpManagerMapper.addCategory(category);
	}

	@Override
	public int updateCategory(ProjectCategory category) {
		return istpManagerMapper.updateCategory(category);
	}

	@Override
	public int deleteCategory(List<Long> ids) {
		return istpManagerMapper.deleteCategory(ids);
	}

	@Override
	public List<ProjectCategory> getAllCategorys() {
		return istpManagerMapper.getAllCategorys();
	}
	@Override
	public ProjectCategory getCategorysById(Long id){
		return istpManagerMapper.getCategorysById(id);
	}

	@Override
	public List<Map> getProjectList(GeneVo geneVo) {
		return istpManagerMapper.getProjectList(geneVo);
	}
	@Override
	public int updateStatusByProjectId(GeneVo geneVo) {
		return istpManagerMapper.updateStatusByProjectId(geneVo);
	}
}
